package com.llb666.java.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liulibin
 */
@RestController
public class StatController {

    public Integer c = 0;

    @GetMapping("/stat")
    public Integer stat(){
        return c;
    }
    @GetMapping("/add")
    public Integer add(){
        return c++;
    }
    @GetMapping("/reset")
    public Integer reset(){
        c =0;
        return c;
    }
}
